import request from '../../utils/request';

// 基地信息列表
export function baseList (params){
    return request({
        url:"/sys/iaBaseFoundation/findBaseFoundationListByPage.do",
        method: 'get',
        params: params
    });
};
// 删除基地列表
export function delBaseList (params){
    return request({
        url:"/sys/iaBaseFoundation/delete.do",
        method: 'DELETE',
        params: params
    });
};
// 新增基地信息
export function addBaseInfo (params){
    return request({
        url:"/sys/iaBaseFoundation/add.do",
        method: 'post',
        data: params,
        headContype:true
    });
};
// 查询基地编辑信息
export function lookBaseInfoDetail (params){
    return request({
        url:"/sys/iaBaseFoundation/detail.do",
        method: 'get',
        params: params
    });
};

// 基地编辑提交
export function editBaseInfo (params){
    return request({
        url:"/sys/iaBaseFoundation/update.do",
        method: 'put',
        data: params,
        headContype:true
    });
};

// 基地财务提交
export function BaseMoneyInfoSubmit (params){
    return request({
        url:"/sys/iaBaseFinance/add.do",
        method: 'post',
        data: params,
        headContype:true
    });
};
// 基地财务详情
export function BaseMoneyInfoDetail (params){
    return request({
        url:"/sys/iaBaseFinance/detail.do",
        method: 'get',
        params: params
    });
};
//录入(修改)产品质量及销量管理
export function BaseProductInfoSubmit (params){
    return request({
        url:"/sys/iaBaseFinance/sell/add.do",
        method: 'post',
        data: params,
        headContype:true
    });
};
// 基地财务详情
export function BaseProductInfoDetail (params){
    return request({
        url:"/sys/iaBaseFinance/sell/detail.do",
        method: 'get',
        params: params
    });
};


// 商户信息审核列表

export function getGoodsUseAuditList (params){
    return request({
        url:"/sys/iaBaseFoundation/check/findBaseFoundationListByPage.do",
        method: 'get',
        params: params
    });
};


// 删除商户信息审核列表
export function delGoodsUseAuditList (params){
    return request({
        url:"/sys/iaBaseFoundation/check/findBaseFoundationListByPage.do",
        method: 'get',
        params: params
    });
};


// 获取审核信息
export function getAuditDetail (params){
    return request({
        url:"/sys/iaBaseFoundation/check/detail.do",
        method: 'get',
        params: params
    });
};

// 保存审核信息
export function seavAudit (params){
    return request({
        url:"/sys/iaBaseFoundation/check.do",
        method: 'put',
        params: params
    });
};

// 保存审核信息
export function baseAuditList (params){
    return request({
        url:"/sys/iaBaseFoundation/check.do",
        method: 'put',
        params: params
    });
};